<template>
    <div @click="handleDivClick">
      <button @click.stop="handleButtonClick">点击我</button>
    </div>
  </template>
  
  <script setup>
  const handleDivClick = () => {
    console.log('div 被点击');
  };
  
  const handleButtonClick = () => {
    console.log('按钮被点击');
  };
  </script>